<?php
namespace Common\Model;

class DistrictModel extends CommonModel{
    
	public function getDistrictName($id){
		return $this->where("id='$id'")->getField('name');
	}

	public function getDistricts($city_id){
		return $this->where("pid='{$city_id}'")->select();
	}
}